<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
		<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8" />
		<title>{$sys.name}</title>
		<meta name="keywords" content="{$sys.key}" />
		<meta name="description" content="{$sys.des}" />
		<link rel="stylesheet" href="/static/home/css/idangerous.swiper.css" />
		<link rel="stylesheet" href="/static/home/css/db_cl_mn_dbk.css" />
		<link rel="stylesheet" href="/static/home/css/layer.css">
		<link rel="stylesheet" href="/static/home/css/style.css" />
		<style type="text/css">
			.layout {
				z-index: 99999;
				background-color: rgba(0, 0, 0, 0.8);
				position: fixed;
				top: 0;
				left: 0;
				width: 100%;
				height: 100%;
			}
			.layer-buy {
				background-color: rgba(255, 255, 255, 1);
				margin: 50% auto auto auto;
				width: 90%;
				display: inline-block;
				border-radius: 4px;
				font-size: 0.875rem;
				color: #666;
			}
			
			.layer-buy p {
				padding: 10px 30px 20px 30px;
			}
			
			.layer-buy>div {
				border-top: 1px solid #ebebeb;
			}
			.swiper-slide{
				padding-top: 0;
			}
			.layer-buy a {
				display: inline-block;
				width: 50%;
				box-sizing: border-box;
				height: 50px;
				line-height: 50px;
				color: #666;
			}
			
			.layer-buy a:nth-child(1) {
				border-right: 1px solid #ebebeb;
			}
			
			.layer-buy img {
				width: 60px;
				height: 60px;
				margin-top: 30px;
			}
			
			.slider-imgs {
				width: 100%;
				margin-bottom: -4px;
				position: relative;
			}
			.list-img-box{
				position: relative;
				width: 40px;
				height: 40px;
				margin: 0 auto
			}
			.list-img-box img.rem{position: absolute;left: 0;top: 0;}
			.footer-box ul li{padding: 0;}
		    #cnzz_stat_icon_1274328340{
		    	opacity: 0;
		    }
          	.biaoqian{position: absolute;right: 0;top:0;width: 15px;background: #46A3FF;color:#fff;padding: 4px;border-radius: 0 0 0 4px;font-size: 12px;}
		    .scroll_top {right: 15px;background: url(/static/home/images/tg.png) no-repeat 5px 5px;background-size: 3rem auto;}
			.scroll_top{display: block;position: fixed;bottom: 6rem;height: 60px;width: 60px;z-index: 48;border-radius: 50%;text-indent: -999px;overflow: hidden;}
		</style>
		<script type="text/javascript" src="/static/home/js/vue.js"></script>
	</head>

	<body style="background:#fff;">
		<div class="db-box" style="border-bottom: 70px solid #F1F4F8" id="app" v-cloak>
			<!--轮播图-->
			<div class="swiper-container"> 
				<div class="swiper-wrapper">
				{foreach $ad as $v}
					<div class="swiper-slide" onlick="location.href='{$v.url}'">
						<img width="100%" src="{$v.pic}" alt="{$v.name}" />
					</div>
				{/foreach}
				</div>
				<div class="pagination" id="pgtion">    </div>
			</div>
  
			{volist name="product" id="p"}
				{if condition="!empty($p['products'])"}
     
				<div class="db-product-box">
					<div class="db-loans-title">
						<img src="{$p.img}" alt="" />
						<h2>{$p.title}</h2>
					</div>
					
					<div class="db-loans-list">
						<ul>

						{volist name="$p['products']" id="v"}
							<li>
								<a href="/product/loan/{$v.id}">
								<div class="rijie biaoqian">{$v.jiesuan}</div>
									<div class="list-img-box">
									<img src="{$v.logo}" alt="" />
									</div>
									<h3>{$v.title}</h3>
									<div class="list-ms">
										<span style="font-weight: 600;">$</span>
										<span>奖金<span>{$v.jiangjin}</span></span>
									</div>
								</a>
							</li>
						{/volist}
						</ul>
					</div>
					
				</div>
				{/if}
				{/volist}
		</div>
		<div class="modal-mask">
			<div class="modal-dialog">
				<img src="/static/home/images/vip_icon.png" class="modal-image"/>
				<img src="/static/home/images/close-jq.png" id="guanbi" class="close-img"/>
				<div class="modal-content">
					<span class="modal-lt">您还不是代理</span>
					<span class="modal-lt">点击下方“立即购买”使用此功能</span>
					<span class="modal-tl">如有疑问,请联系客服（微信:  {$sys.wx}）</span>
				</div>
				<div class="modal-footer">
					<div class="btn-confirm">立即购买</div>
				</div>
			</div>
		</div>

		{if($userinfo.lev_id ==2)}
			<a class='scroll_top' href='/shop/mydian'></a>
		{else}
			<a class='scroll_top' onclick='showModel()'></a>
		{/if}
			{include file="common/footer"/}
			<script src='/static/home/js/jquery-1.12.4.min.js'></script>
			<script src="/static/home/js/idangerous.swiper.min.js"></script>
			<script type="text/javascript">
			function showModel(){
  				$('.modal-mask').show();
  			}
  			$('#guanbi').click(function(){
  				$('.modal-mask').hide();
  			});
  			$('.btn-confirm').click(function(){
  				window.location.href = "{:url('user/level')}";
  			});
				$(function() {
					function scroll() {
						$(".wdslider-ul").animate({
							"margin-top": "-50px"
						}, function() {
							$(".wdslider-ul li:eq(0)").appendTo($(".wdslider-ul"))
							$(".wdslider-ul").css({
								"margin-top": 0
							})
						})
					}
					$(window).scroll(function(){
						if($(window).scrollTop()>0){
							$(".scroll_top").show();
							
						}else{
							$(".scroll_top").hide();
						}
					});

					setInterval(scroll, 2000);
					var vm = new Vue({
						el: '#app',
						mounted(){
							var mySwiper = new Swiper('.swiper-container', {
								pagination: '.pagination',
                              	autoHeight:true,
								autoplay: 2000,
								direction: 'vertical',
								paginationClickable: true,
								loop: true,
								observer:true,
								observeParents:true,
							})
						},
						data: {
						},
						methods: {
						},
					});
				})
				
				$(function() {
					$(".swiper-container").height($(".swiper-slide img").height());
					$("#close").click(function() {
						$("#layout").hide();
						return false;
					});
				});
				var pagSz = $(".swiper-wrapper").children(".swiper-slide").size();
				if(pagSz == 1) {
					$("#pgtion").css({
						"display": "none"
					})
				}
			</script>
			<script>
		function ancs() {
			$(".intxt ul").animate({
				marginTop: "-28px"
			},
			600,
			function() {
				$(this).css({
					marginTop: "0px"
				}).find("li:first").appendTo(this);
			})
		}
		$(function() {
			var ans = setInterval("ancs()", 3000);
			$(".intxt").hover(function() {        
				clearInterval(ans);
			},
			function() {
				ans = setInterval("ancs()", 3000);
			})
		})
	</script>

	</body>
</html>